<?php

require_once('inc.config.php');

$useTemplate   = 'index.html';

$page = new QuickSkin ($useTemplate );

template_ini($page);

$con = array(
	"ispublic" => 1
);

$con_qg= array(
	"ispublic" => 1,
	"type" => 0
);

$con_qz= array(
	"ispublic" => 1,
	"type" => 1
);

$goldlist = $myAgent->getGoldenList();
$alllist = $myAgent->getSearchList("" , 1 , 1);
$totalpage = $myAgent->getSearchPage("");
$totalnum = $myAgent->getSearchNum("");


$selllist = $myHouse->getSearchSellList($con , 1 , 1);
$rentlist = $myHouse->getSearchRentList($con , 1 ,1);
$qglist = $myQgqzhouse->getQgList($con_qg , 1 , 1);
$qzlist = $myQgqzhouse->getQgList($con_qz , 1, 1);

//$selllist = $myHouse->getIndexNewList("s" , $con , 1 , -1 , __index_new_num__);
//$rentlist = $myHouse->getIndexNewList("r" , $con , 1 , -1 , __index_new_num__);
$n_selllist = array_slice($selllist , 0 , __index_new_num__);
$n_rentlist = array_slice($rentlist  , 0 , __index_new_num__);
$n_qglist = array_slice($qglist  , 0 , __index_new_num__);
$n_qzlist = array_slice($qzlist  , 0 , __index_new_num__);


//$qglist = $myQgqzhouse->getIndexNewList($con_qg , 1 , -1 , __index_new_num__);
//$qzlist = $myQgqzhouse->getIndexNewList($con_qz , 1 , -1 , __index_new_num__);

$page->assign("goldlist" , $goldlist);
$page->assign("alllist" , $alllist);
$page->assign("totalpage" , $totalpage);
$page->assign("totalnum" , $totalnum);

$page->assign("selllist" , $selllist);
$page->assign("rentlist" , $rentlist);
$page->assign("qglist" , $qglist);
$page->assign("qzlist" , $qzlist);

$page->assign("n_selllist" , $n_selllist);
$page->assign("n_rentlist" , $n_rentlist);
$page->assign("n_qglist" , $n_qglist);
$page->assign("n_qzlist" , $n_qzlist);


$page->assign("indexcls" , "nv_current");

$page->output();


//ob_end_flush();

?>
